<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 算术运算符 - *  /   比较运算符  >   ==
        console.log(8 - '3') // 5
        console.log('1999' * '2') //  3998
        console.log(3 > '1')   // true
        console.log(3 == '3')  // true
        // + 正号使用的时候，也会把字符串转换为 数字型
        console.log('123')  // '123'
        console.log(+'123')  // 123
        console.log(typeof +'123')  // number
    </script>
</body>
</html>